Add Python CI matrix + coverage and release-based PyPI publish workflow#16
Closed
Add Python CI matrix + coverage and release-based PyPI publish workflow#16
Conversation
Agent-Logs-Url: https://github.com/Rahuldrabit/Genetic_algorithm/sessions/edbe1fdb-9301-434a-90c8-2a55d8a15bb0 Co-authored-by: Rahuldrabit <104688569+Rahuldrabit@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Rahuldrabit/Genetic_algorithm/sessions/edbe1fdb-9301-434a-90c8-2a55d8a15bb0 Co-authored-by: Rahuldrabit <104688569+Rahuldrabit@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add continuous deployment for PyPI publishing
Add Python CI matrix + coverage and release-based PyPI publish workflow
Mar 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the missing GitHub automation needed for PyPI publishing readiness: continuous integration with linting/tests across multiple Python versions and continuous delivery for release-triggered PyPI publishing. It also wires README status visibility and aligns coverage collection with the Python package path.
CI workflow (
.github/workflows/ci.yml)3.9,3.10,3.11ruffpytest-covandpytest --cov=genetic_algorithmcontents: read)CD workflow for PyPI (
.github/workflows/publish.yml)on: release: published)python -m buildpypa/gh-action-pypi-publishwith OIDC (id-token: write)Python package coverage target alignment
genetic_algorithmpackage alias (genetic_algorithm/__init__.py) that re-exports from compiledgamodulepyproject.tomlto includewheel.packages = ["genetic_algorithm"]so coverage target exists in installed package layoutREADME status badge
actions/workflows/ci.ymlFocused Python compatibility test
tests/test_python_package.pyto verifygenetic_algorithmimport surface is exposed (e.g.,Config,Result)Example of the new CI matrix + coverage step:
⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.